<?php

class Product
{
    public static function getList()
    {
        return R::getAll('SELECT * FROM product');
    }

    public static function getProductById($productId)
    {
        return R::load('product', $productId);
    }

    public static function getProdustsByIds($ids)
    {
        return R::loadAll('product', $ids);
    }

    // public static function findBiName($name) {return  R::find(type: 'product', sql: 'name = :name', bindings: [':name' => $name]);}
}
